package com.jf3q.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jf3q.common.domain.EduBanner;
import com.jf3q.common.mapper.EduBannerMapper;
import com.jf3q.common.service.EduBannerService;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class EduBannerServiceImpl extends ServiceImpl<EduBannerMapper, EduBanner>
    implements EduBannerService{

    @Override
    public Page getPage(Integer current, Integer size) {
        Page<EduBanner> page = new Page<>(current, size);
        return baseMapper.selectPage(page,new LambdaQueryWrapper<EduBanner>().orderByAsc(EduBanner::getSort));
    }
}




